<?php
require 'setting.php';

$db = new Mysql;
$controller = new categoryListController($db); //实例化一个控制对象
$view=$controller->getView(); //获取视图对象
$view->p('index.html'); //输出HTML




// -------------------- 语法参考 --------------------
/*$tpl->assign("name","Money");
$tpl->assign("title_page","My money");
$tpl->assign("FirstName",array("John","Mary","James","Henry"));
$tpl->assign("LastName",array("Doe","Smith","Johnson","Case"));
$tpl->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),array("I", "J", "K", "L"), array("M", "N", "O", "P")));

$tpl->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"),array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));

$tpl->assign("option_values", array("NY","NE","KS","IA","OK","TX"));
$tpl->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas"));
$tpl->assign("option_selected", "NE");*/
/*
$db = new Mysql();
$rs = $db->query("select * from collectd");
if (!empty($rs)){
	foreach($rs as $v)
	{
		echo "data:[".$v["caption"]."]<br/>";
	}
}
$db->close();
*/
?>